<template>
    <div id="background">
        <el-container>
            <el-header id="xiaoXiHeadPosition">
                 <el-row type="flex" style="height:80%;display:flex;align-items: flex-end">
                    <!-- <el-col :xs="2" :sm="2" :md="2" :offset="1"  class="imgCol">
                        <img v-bind:src="backIcon" class="backSize" @click="back"/>
                    </el-col> -->
                    <el-col  :xs="6" :sm="6" :md="6" :offset="9" class="imgCol"> 
                        <span class="titleSize" >消息</span>
                    </el-col>
                </el-row>
            </el-header>
            <el-main id="xiaoXiMainPosition">
                <el-row class="xiaoXiRowHeight imgCol">
                     <el-col class="imgCol">
                        <el-button class="xiaoXiBtn" @click="goToXiTongXiaoXi">
                            <i class="el-icon-message-solid"  style="padding-right:15px;color:#53cdf5"></i>系统消息                                                    
                        </el-button>
                      
                    </el-col>
                </el-row>
            </el-main>
            <el-footer class="foot">
                <div>
                    <el-row type="flex" justify="space-around" style="margin-top:10px">
                        <el-col :xs="6" :sm="6" :md="6" >
                        <div class="imgCol" >
                            <img v-bind:src="peiXunIcon"  class="mainIconSize" @click="goToPeiXun"/>
                        </div>
                        <div class="imgCol" @click="goToPeiXun">
                            <span class="words littleWords"  >培训</span>
                        </div>
                        </el-col>
                        <el-col :xs="6" :sm="6" :md="6">
                        <div class="imgCol">
                            <img v-bind:src="zhaoPinIcon"  class="mainIconSize" @click="goToZhaoPin"/>
                        </div>
                        <div class="imgCol" @click="goToZhaoPin">
                            <span class="words littleWords">招聘</span>
                        </div>
                        </el-col>
                        <el-col :xs="6" :sm="6" :md="6">
                        <div class="imgCol">
                            <img v-bind:src="xiaoXiIcon"  class="mainIconSize"/>
                            <!--<i class="el-icon-chat-dot-square" style="font-size:24px;color:#707070" ></i>-->
                        </div>
                        <div class="imgCol">
                            <span class="words littleWords" style="color:#53cdf5">消息</span>
                        </div>
                        </el-col>
                        <el-col :xs="6" :sm="6" :md="6">
                        <div class="imgCol">
                            <img v-bind:src="woDeIcon"  style="color:#53cdf5" class="mainIconSize"  @click="goToMine()"/>
                        </div>
                        <div class="imgCol"  @click="goToMine()">
                            <span class="words littleWords"  >我的</span>
                        </div>
                        </el-col>
                    </el-row>
                </div>
            </el-footer> 
        </el-container>
    </div>
</template>
<script>
import backIcon from '../../assets/img/mine/geRenZhongXin/back.png'
import peiXunIcon from '../../assets/img/mine/peixun.png'
import zhaoPinIcon from '../../assets/img/mine/zhaopin.png'
import xiaoXiIcon from '../../assets/img/xiaoXi/xiaoXiChoose.png'
import woDeIcon from '../../assets/img/mine/mine.png'
export default {
    data(){
        return{
            backIcon:backIcon,
            peiXunIcon:peiXunIcon,
            zhaoPinIcon:zhaoPinIcon,
            xiaoXiIcon:xiaoXiIcon,
            woDeIcon:woDeIcon,
        }
    },
    mounted(){
       var normalHeight=sessionStorage.getItem('normalHeight');

        var bg = document.getElementById("background");
       // normalHeight=document.documentElement.clientHeight;
        console.log("height:"+normalHeight);
        bg.style.height = normalHeight+"px";
        bg.style.backgroundColor = "#FFFFFF"
        bg.style.margin = "0px";

        var head=document.getElementById("xiaoXiHeadPosition");
        var headHeight=normalHeight/30 *4 ;
        console.log("headHeight:"+headHeight);
        head.style.height=headHeight+"px";

        var main=document.getElementById("xiaoXiMainPosition");
        var mainHeight=normalHeight/30 *26;
        console.log("mainHeight:"+mainHeight);
        main.style.height=mainHeight+"px";


    },
    methods:{
        back(){
            console.log("back:");
            this.$router.go(-1);
        },
        goToMine(){
            this.$router.push({
                path:'/mine'
            })
        },
        goToPeiXun(){
            this.$router.push({
                path:'/peiXun'
            })
        },
        goToZhaoPin(){
          this.$router.push({
            path:'/zhaoPin'
          })
        },
        goToXiTongXiaoXi(){
            this.$router.push({
                path:'/xiaoXi/xiTongXiaoXi'
            })
        }
    }
}
</script>
<style>
.xiaoXiRowHeight{
     height: 10%;
      border-bottom: 1px solid #f5f4f9;
}
.xiaoXiBtn{
 border-style: none;
    outline: none;
   /* height: 100%; */
    width: 100%;
    text-align: left;
    border: none;
    background-color: rgb(255,255,255,0);
    color: #707070;
    font-size: 1em;
    /* border-bottom: 1px solid #f5f4f9; */
    border-radius: 0px;
}
.imgCol{
    display:flex;
    align-items:center;
    justify-content:center
}
.el-main {
    padding: 0px ;
}
.el-header{
  padding:0px;
}
.el-footer {
    padding:0px;
}
#xiaoXiHeadPosition{
    background-color: #53cdf5;
}
.words{
    color:#707070;
}
.littleWords{
  margin-top:5px;
    font-size: 14px;
}
.mainIconSize{
    height:23px;
}
.foot{
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 2;
  background-color: #fff;
    border-top: 1px solid #f5f4f9;
}
.backSize{
    height: 26px;
}
.titleSize{
    font-size:1.125em;
    color:#ffffff
}
@media screen and (max-width: 340px){
  .backSize{
      height: 22px;
  }
  .titleSize{
      font-size: 1em;
  }
}
</style>
